<template>
    <div class="technicItem">
      <div class="left">
        <div class="title van-multi-ellipsis--l2">
          {{item.title}}
        </div>
        <div class="item">
          <div class="item1">{{item.updated_at | formatTime}}</div>
          <div class="item2 iconfont">&#xe644;</div>
          <div class="item3">{{item.read}}</div>
          <div class="item4 iconfont">&#xe650;</div>
          <div class="item5">{{item.star}}</div>
        </div>
      </div>
      <img v-if="item.cover" :src="$baseUrl + item.cover" class="right" alt="">
    </div>
</template>

<script>
export default {
  name: 'technicItem',
  props: ['item']
}
</script>

<style lang="less" scoped>
  .technicItem {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    .left {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .title {
        font-size: 16px;
        font-family: PingFangSC, PingFangSC-Medium;
        font-weight: 500;
        text-align: left;
        color: #181a39;
        line-height: 23px;
        letter-spacing: 0px;
      }
      .item {
        display: flex;
        justify-content: space-around;
        align-items: center;
        font-size: 12px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #b4b4bd;
        line-height: 17px;
        letter-spacing: 0px;
        .item1 {
          flex: 1;
        }
        .item2 {
        }
        .item4 {
          margin-right: 10px;
        }
        .item3 {
          margin-left: 8px;
          margin-right: 23px;
        }
        .item5 {
        }
      }
    }
    .right {
      width: 113px;
      height: 75px;
      margin-left: @p15;
      object-fit: cover;
      border-radius: 5px;
    }
  }
</style>
